package com.bkgy.controller.tbcalflatness.controller;

import com.bkgy.controller.tbcalflatness.entity.TbCal1630FlatnessRequest;
import com.bkgy.controller.tbcalflatness.service.TbCal1630FlatnessPdiService;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;


/**
 * AI轧制力/AI工作辊
 */
@RestController
@RequestMapping("/tbcal")
public class TbCal1630FlatnessPdiController {

    @Autowired
    private TbCal1630FlatnessPdiService service;

    @Operation(summary = "AI轧制力/AI工作辊", description = "根据条件查询AI轧制力/AI工作辊数据")
    @PostMapping("/getTbCal1630Flatness")
    public ResultData getTbCal1630Flatness(@RequestBody @Valid TbCal1630FlatnessRequest request) {
        return service.getTbCal1630Flatness(request);
    }

}
